from page.base_page import BasePage
from appium.webdriver.common.mobileby import By

class SpxqPage(BasePage):
    #定位器
    #点击具体作品
    djzp_locator = (By.XPATH,
                    '//android.support.v7.widget.RecyclerView[@resource-id=\"com.gfeng.daydaycook:id/recyclerView\"]/android.widget.RelativeLayout[1]')

    #操作方法
    def click_zsxq(self):
        self.driver.find_element(*self.djzp_locator).click()